package com.wxy.school.common;

/**
 * @Project: SmartCampus
 * @Package: com.wxy.common.com.wxy.common.constant
 * @Author: 王祥宇
 * @CreateTime: 2023-07-21 11:55
 * @Description: TODO
 * @Version: 1.0
 **/
public class Constant {

    // token签名密钥
    public static final String JWT_TOKEN_SECRET = "SmartCampus";

    // token过期时间
    public static final long JWT_TOKEN_EXPIRATION = 1000 * 60 * 30;

    // 短信验证码过期时间
    public static final long SMS_CODE_EXPIRATION = 5;

    // 阿里云AccessKey ID
    public static final String ACCESS_KEY_ID = "LTAI5tGFj9sTtPrfqrSKPNoi";

    // 阿里云AccessKey Secret
    public static final String ACCESS_KEY_SECRET = "skJ2DoJgKPfBYlrkEWoMSqJp9YovJl";

    // 阿里云OSS bucketName
    public static final String BUCKET_NAME = "wxy-smart-campus";

    // 阿里云 Region ID
    public static final String REGION_ID = "cn-hangzhou";

    // 阿里云短信签名
    public static final String SIGN_NAME = "智慧校园";

    // 阿里云短信模板code
    public static final String TEMPLATE_CODE = "SMS_460575217";

    // 阿里云短信服务 endpoint 可参考 https://api.aliyun.com/product/Dysmsapi
    public static final String SMS_ENDPOINT = "dysmsapi.aliyuncs.com";

    // 阿里云OSS对象存储服务服务 endpoint
    public static final String OSS_ENDPOINT = "https://oss-cn-hangzhou.aliyuncs.com";

    // 支付宝加签以及解签的格式
    public static final String SIGN_TYPE = "RSA2";

    // 支付宝沙箱网关地址
    public static final String GATEWAY_URL = "https://openapi.alipaydev.com/gateway.do";

    // 接口信息传递时的数据格式
    public static final String FORMAT = "JSON";

    // 支付地址链接的编码格式
    public static final String CHARSET = "UTF-8";

}
